home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / compuserve-file-archive / 03 Demos and Info / R65C02.TXT < prev    next >
Encoding:
Text File  |  2019-04-13  |  4.7 KB  |  281 lines

  1. Enclosed in the following short article is a short description of the
  2.  
  3. R65C02 Microprocessor made by Rockwell. For those 8-bitters who are looking
  4.  
  5. for a cheap upgrade to a PET or those 64/128 owners who want a few extra
  6.  
  7. commands to their microprocessor. (Note that the pins of an 6502 are not
  8.  
  9. compatible to a 6510 or an 8502). This information is handed out by
  10.  
  11. Rockwell and is in the public domain.
  12.  
  13.  
  14.  
  15. [Some important points to keep in mind about the R65C02:
  16.  
  17.  
  18.  
  19. First, this is the microprocessor that's in Schnedler System's TurboMaster.
  20.  
  21. Schnedler also markets an assembler (MAE64 v5) and a multi-pass symbolic 
  22.  
  23. disassembler (Symbol Master - great product!) that supports the extra 
  24.  
  25. opcodes. For more information on the TurboMaster or the software, contact:
  26.  
  27.  
  28.  
  29. Schnedler Systems
  30.  
  31. Dept. CIS, 25 Eastwood Rd, P.O. Box 5964
  32.  
  33. Asheville, NC  28813
  34.  
  35. (704) 274-4646
  36.  
  37.  
  38.  
  39. Second, it's important to point out that using the extra opcodes in a
  40.  
  41. program will mean that the program is likely to fail when run on a standard
  42.  
  43. 6502 (or 6510 in the case of the 64). Those opcodes may do nothing in a
  44.  
  45. 6502 or may do something other than what a 65C02 will do.
  46.  
  47.  
  48.  
  49. Third point relates to the second. Any program that uses these opcodes
  50.  
  51. expecting to run on a 6502 will also yield unpredictable results. Some
  52.  
  53. games programmers use 6502-bogus opcodes as a protection measure. Most
  54.  
  55. machine language monitors for 6502's will display unimplemented opcodes as
  56.  
  57. ??? thereby making it tougher for people to figure out the code. Although
  58.  
  59. this is probably most common in games, I know that PaperClip uses such
  60.  
  61. codes (unfortunately). There may be other productivity packages that do
  62.  
  63. too, but PaperClip is the only one I'm sure about.
  64.  
  65.  
  66.  
  67. Fourth, I haven't been able to check this data for accuracy. I presume that 
  68.  
  69. this data has been copied from the Rockwell spec sheet.
  70.  
  71.  
  72.  
  73. - Malcolm 76703,4243]
  74.  
  75.  
  76.  
  77. Features
  78.  
  79.  
  80.  
  81. CMOS silicon gate technology
  82.  
  83. Low Power (4ma/MHz)
  84.  
  85. Software compatible with the R6502
  86.  
  87. Single 5V power supply requirements
  88.  
  89. Eight bit parallel processing
  90.  
  91. Decimal and Binary arithmetic
  92.  
  93. True indexing cabability
  94.  
  95. Programmable Stack Pointer
  96.  
  97. Interrupt Capability
  98.  
  99. Non-maskable interrupt
  100.  
  101. Direct Memory Access Capability (DMA)
  102.  
  103. 4MHz operating speed
  104.  
  105.  
  106.  
  107.  
  108.  
  109. Listing of R65C02 additional opcommands
  110.  
  111.  
  112.  
  113. BBR Branch on Bit Reset
  114.  
  115. BBS Branch on Bit Set
  116.  
  117. BRA Branch always
  118.  
  119. PHX Push X register on stack
  120.  
  121. PHY Push Y register on stack
  122.  
  123. PLX Pull X register from stack
  124.  
  125. PLY Pull Y register from stack
  126.  
  127. RMB Reset memory bit
  128.  
  129. SMB Set memory bit
  130.  
  131. STZ Store Zero
  132.  
  133. TRB Test and reset bits
  134.  
  135. TSB Test and set bits
  136.  
  137.  
  138.  
  139. Listing of old opcommands with new address modes
  140.  
  141.  
  142.  
  143. ADC Add memory to accumulator with carry
  144.  
  145. AND AND memory with accumulator
  146.  
  147. BIT Test bits in memory with accumulator
  148.  
  149. CMP Compare memory and accumulator
  150.  
  151. DEC Decrement memory by 1
  152.  
  153. EOR Exclusive OR memory with accumultor
  154.  
  155. INC Increment memory by 1
  156.  
  157. JMP Jump to a new location
  158.  
  159. LDA Load accumulator with memory
  160.  
  161. ORA OR memory with accumulator
  162.  
  163. STA Store memory with accumulator
  164.  
  165.  
  166.  
  167.  
  168.  
  169. OPCODE   Mnemonic  Address      Bytes Cycles
  170.  
  171.  
  172.  
  173. 80       BRA       Relative       2     3
  174.  
  175. DA       PHX       Implied        1     3
  176.  
  177. 5A       PHY       Implied        1     3
  178.  
  179. FA       PLX       Implied        1     4
  180.  
  181. 7A       PLY       Implied        1     4
  182.  
  183. 9C       STZ       Absolute       3     4
  184.  
  185. 9E       STZ       Absolute,X     3     5
  186.  
  187. 64       STZ       ZeroPage       2     5
  188.  
  189. 74       STZ       ZeroPage,X     2     4
  190.  
  191. 1C       TRB       Absolute       3     6
  192.  
  193. 14       TRB       ZeroPage       2     5
  194.  
  195. 0C       TSB       Absolute       3     6
  196.  
  197. 04       TSB       Zeropage       2     5
  198.  
  199. 0F-7F    BBR       Zeropage       3     5
  200.  
  201. 8F-FF    BBS       Zeropage       3     5
  202.  
  203. 07-77    RMB       ZeroPage       2     5
  204.  
  205. 87-F7    SMB       ZeroPage       2     5
  206.  
  207.  
  208.  
  209. Hex codes for old opcodes with new address
  210.  
  211.  
  212.  
  213. Hex  Mnemonic  New address     Bytes  Cycles
  214.  
  215. 72   ADC       Indirect          2      5
  216.  
  217. 32   AND       Indirect          3      5
  218.  
  219. 3C   BIT       Absolute,X        3      4
  220.  
  221. 34   BIT       Zeropage,X        3      4
  222.  
  223. 89   BIT       Immeadite         2      2
  224.  
  225. D2   CMP       Indirect          2      5
  226.  
  227. 3A   DEC       Accumulator       1      2
  228.  
  229. 52   EOR       Indirect          2      5
  230.  
  231. 1A   INC       Accumulator       1      2
  232.  
  233. 7C   JMP       Absolute,X        3      6
  234.  
  235. B2   LDA       Indirect          2      5
  236.  
  237. 12   ORA       Indirect          2      5
  238.  
  239. F2   SBC       Indirect          3      5
  240.  
  241. 92   STA       Indirect          2      5
  242.  
  243.  
  244.  
  245.  
  246.  
  247. New Opcode effects on registers
  248.  
  249.  
  250.  
  251.  
  252.  
  253. Opcode         Processor Status Code
  254.  
  255. .              7 6 5 4 3 2 1 0
  256.  
  257. .              N V . B D I Z C
  258.  
  259. BRA
  260.  
  261. PHX
  262.  
  263. PHY
  264.  
  265. PLX            X           X
  266.  
  267. PLY            X           X
  268.  
  269. STZ            X           X
  270.  
  271. TRB                        X
  272.  
  273. BBR
  274.  
  275. BBS
  276.  
  277. RMB
  278.  
  279. SMB
  280.  
  281.